package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.grid.entity.GridAppraiseCompany;
import com.easylinkin.linkappapi.grid.models.dto.GridAppraiseCompanyScoreDTO;
import site.morn.rest.RestMessage;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 网格评比单位表 服务类
 *
 * @author 
 * @since 2024-05-16
 */
public interface IGridAppraiseCompanyService extends IService<GridAppraiseCompany> {

    RestMessage queryList(Integer appraiseId);

    RestMessage  fillOutScore(GridAppraiseCompanyScoreDTO gridAppraiseCompanyScoreDTO);

    void refreshCompanyCount(Integer appraiseId);

    Map<Integer, List<GridAppraiseCompany>> mapGroupByAppraiseId(Collection<Integer> appraiseIds);
}